import Vue from 'vue'
import Router from 'vue-router'
import Home from '../components/Home.vue'
import Classify from '../components/Classify.vue'
import Shopping from '../components/Shopping.vue'
import Profile from '../components/Profile.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/classify',
      component: Classify
    },
    {
      path: '/shopping',
      component: Shopping
    },
    {
      path: '/profile',
      component: Profile
    }
  ],
  
  mode:'history'
})
